#!/usr/bin/env python
# -*- coding: utf-8 -*-
# @Time    : 2017/11/23 17:11
# @Author  : Beam
# @Site    : 
# @File    : setting.py
# @Software: PyCharm

import sys,os

'''免登陆验证页面'''
URLS = ['/login','/admin','/api']

'''Saltstack server 对应的minions的ID'''
SALTMINIONSID = 'Local-xss247'

'''API认证配置'''
ASSET_AUTH_KEY = 'ucuxeyaBusiep6chei5aicohnaeNgei2'   #认证的key
ASSET_AUTH_HEADER_NAME = 'HTTP_AUTH_KEY'    #认证头
ASSET_AUTH_TIME = 10 #超时时间

'''日志模块配置'''
#Linux环境
# PATH = os.path.dirname(os.getcwd())  #获取当前目录的上级目录
# #相对路径：存放info日志和error日志  的位置
# INFO_LOG_FILE_PATH = PATH+'/Logs/info_log/'
# ERROR_LOG_FILE_PATH= PATH+'/Logs/error_log/'
#windows本地开发环境
INFO_LOG_FILE_PATH = 'D:\logs\info\\'
ERROR_LOG_FILE_PATH = 'D:\logs\error\\'

'''Saltstack API配置'''
APIURL = "https://192.168.6.247:8001/"
USERNAME = "saltapi"
PASSWORD = "saltapi"